﻿from datetime import datetime
from os.path import dirname, join, abspath, exists
from os import getcwd, makedirs
from sys import stderr, __stderr__
from objects import numbers, persons, limits, talks

__dir__ = getcwd()
path_error = join(__dir__, "create_all.log")
stderr = open(path_error, 'a')
stderr.write("\n\n--------------------------***-----------------------------\nStart...\nLocal Date and Time: "+str(datetime.now())+"\n--------------------------***-----------------------------\n\n")


result=numbers().create+persons().create()+limits().create()+talks().create()

print(str(result) + ' table(s) has(have) been created!')


stderr.write("\nNo errors logged.\n\n\n--------------------------***-----------------------------\nFinish...\nLocal Date and Time: "+str(datetime.now())+"\n--------------------------***-----------------------------\n\n\n\n\n")
stderr.close()
stderr = __stderr__